package com.nbsaas.boot.merchant.rest.convert;

import com.nbsaas.boot.merchant.data.entity.MerchantStatistics;
import com.nbsaas.boot.merchant.api.domain.response.MerchantStatisticsResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 商家统计-实体对象转化成响应对象
*/

public class MerchantStatisticsResponseConvert  implements Converter<MerchantStatisticsResponse,MerchantStatistics> {

    @Override
    public MerchantStatisticsResponse convert(MerchantStatistics source) {
        MerchantStatisticsResponse  result = new  MerchantStatisticsResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

